package com.qgz.framework.web.config;

import java.util.HashMap;
import java.util.Map;

public class ActionConfig {
	private String path;
	private String method;
	private String className;
	private Map<String, String> resultMap;
	
	public static final String DEFAULT_METHOD = "execute";

	public static final String TAG_ACTION = "ACTION";

	public static final String TAG_PATH = "PATH";

	public static final String TAG_METHOD = "METHOD";

	public static final String TAG_CLASS = "CLASS";

	public static final String TAG_RESULT = "RESULT";

	public static final String TAG_NAME = "NAME";

	public ActionConfig() {
		this.resultMap = new HashMap<String,String>();
	};

	public ActionConfig(String name, String method, String className) {
		super();
		this.path = name;
		this.method = method;
		this.className = className;
		this.resultMap = new HashMap<String, String>();
	}

	public String getResult(String name) {
		return this.getResultMap().get(name);
	}

	public void setResult(String name, String path) {
		this.getResultMap().put(name, path);
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public Map<String, String> getResultMap() {
		return resultMap;
	}

	public void setResultMap(Map<String, String> resultMap) {
		this.resultMap = resultMap;
	}
}
